package cn.edu.neu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.neu.mapper.UserMapper;
import cn.edu.neu.model.Systemset;
import cn.edu.neu.model.User;
import cn.edu.neu.service.UserService;

@Service
@Transactional 
public class UserServiceImpl implements UserService {

	@Resource
	private UserMapper mapper;

	@Override
	public Map<String, Object> findByName(String name) {
		return mapper.findByName(name);
	}

	@Override
	public List<User> getAllUser() {
		List<User> users=mapper.FindAllUser();
		return users;
	}

	@Override
	public void AddMemBer(User user) {
		mapper.AddMember(user);
		
	}

	@Override
	public List<User> getLeadAndReF() {
		List<User> laf=mapper.FindLeadAndRef();
		return laf;
	}

	@Override
	public List<User> getSbdUser(String id) {
		List<User> users=mapper.Findsbduser(id);
		return users;
	}

	@Override
	public String getLeadCount(String id) {
		String lc=mapper.FindLeadCount(id);
		return lc;
	}

	@Override
	public void AddMhMg(User user) {
		mapper.AddMhMg(user);
		
	}

	@Override
	public void AddMhr(User user) {
		mapper.AddMhr(user);
		
	}

	@Override
	public void AddMA(User user) {
		mapper.AddMA(user);
		
	}

	@Override
	public void updatetjdb(User user) {
		mapper.updatetjdb(user);
		
	}

	@Override
	public void updatetjjd(User user) {
		mapper.updatetjjd(user);
		
	}

	@Override
	public void AddRuleOT(User user) {
		mapper.AddRuleOT(user);
		
	}

	@Override
	public void AddRuleThreeAfter(User user) {
		mapper.AddRuleThreeAfter(user);
		
	}

	@Override
	public void JiaJD(User user) {
		mapper.JiaJD(user);
		
	}

	@Override
	public void JiaDB(User user) {
		mapper.JIaDB(user);
		
	}

	@Override
	public List<User> MyYuE(String id) {
		List<User> yue=mapper.MyYuE(id);
		return yue;
		
	}

	@Override
	public void memrecordtj(User user) {
		mapper.memrecordtj(user);
		
	}

	@Override
	public void memrecordjl(User user) {
		mapper.memrecordjl(user);
		
	}

	@Override
	public void memrecordjlta(User user) {
		mapper.memrecordjlta(user);
		
	}

	@Override
	public List<User> getmemjl(String id) {
		List<User> memjl=mapper.getmemjl(id);
		return memjl;
	}

	@Override
	public Map<String, Object> findVerifyIdentity(String idcard, String realname) {
		return mapper.findVerifyIdentity(idcard,realname);
	}

	@Override
	public void xiupass(String id, String password) {
		mapper.xiupass(id,password);
		
	}

	@Override
	public void inlogtimes(String id) {
		mapper.inlogtimes(id);
		
	}





	

}
